package com.example.musicmodule;

import android.app.Application;
import android.app.NotificationManager;

import com.example.musicmodule.entity.Music;
import com.example.musicmodule.ible.IMusic;
import com.example.musicmodule.ible.IMain;
import com.example.musicmodule.ible.IPlayer;

import java.util.ArrayList;
import java.util.List;

/**
 * 共享全局数据(整个应用都可以共享)
 * Created by Administrator on 2016/12/16.
 */
public class PlayApplication extends Application {
    //服务接口
    public IMusic music;
    //主页接口
    public IMain mm;
    //播放页接口
    public IPlayer iPlayer;

    //播放列表
    public List<Music> songList=new ArrayList<>();

    //当前播放的歌曲
    public int songPosition;



    //消息管理器
    public NotificationManager notiManager;

    @Override
    public void onCreate() {
        super.onCreate();
        notiManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
    }
}
